package com.tocici.domain.bo;

import com.tocici.domain.Comment;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 评论业务对象 comment
 *
 * @author zeratul
 * @date 2025-03-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Comment.class, reverseConvertGenerate = false)
public class CommentBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long commentId;

    /**
     * 
     */
    private Long musicId;

    /**
     * 父id;评论的父id，为0表示顶级评论
     */
    private Long parentId;

    /**
     * 需要用户表存在
     */
    private Long userId;

    /**
     * 
     */
    private String content;

    /**
     * 
     */
    private Integer isDeleted;


}
